package keyboard.gui;

import javax.swing.JWindow;

import keyboard.model.Keyboard;
import keyboard.model.Login;

@SuppressWarnings("serial")
public class KeyboardWindow extends JWindow {
	
	private Keyboard keyboard;
	
	public KeyboardWindow(Login login) {
		setLayout(null);
		setSize(900,550);
		setLocation(0, 00);

		keyboard = new Keyboard(login);
		
		KeyboardPanel panel = new KeyboardPanel(keyboard);
		panel.setBounds(30, 220, 840, 300);
		add(panel);
		
		TextBox user = new TextBox(keyboard, false);
		user.setBounds(30, 10, 250, 40);
		add(user);
		
		TextBox password = new TextBox(keyboard, true);
		password.setBounds(30, 100, 250, 40);
		add(password);
		
		
		
		
		
		
		setVisible(true);
		
	
	}
	
	
	
	
}
